package team.southcat.wsyygh.hospital.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import team.southcat.wsyygh.common.result.Result;
import team.southcat.wsyygh.model.pojo.hospital.Doctor;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author QiuSiYi
 * @since 2023-04-20
 */
public interface DoctorService extends IService<Doctor> {

    Page getDoctorPageList(int page, int pageSize, Doctor doctor, String adminId);

    Result addDoctor(Doctor doctor);

    Result updataDoctor(Doctor doctor);

    Result getDoctorById(Integer id);

    Result deleteDoctorById(int id);

    Result batchDeleteDoctorByIds(List<Integer> ids);

    //通过医生名查询医生
    List<Doctor> getDoctorByName(List<String> doctorName);

    //通过科室id查询医生
    List<Doctor> getDoctorByDepartmentIds(List<Long> departmentIds);

    List<Doctor> getDoctorsByDepartmentId(String depcode);

    List<Doctor> getList(String adminId);
}
